/*
 * @Descripttion:
 * @Author: liuxia
 * @Date: 2023-05-05 15:14:41
 * @LastEditors: liuxia
 * @LastEditTime: 2023-05-08 09:42:26
 */
import {
    createRouter,
    createWebHashHistory
} from 'vue-router';
import { qiankunWindow } from 'vite-plugin-qiankun/dist/helper';

const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('/src/views/home/index.vue'),
        meta: { 
            keepAlive: true 
        }
    },
    {
        path: '/user/authorization',
        component: () => import('/src/views/user/authorization.vue'),
    },
    {
        path: '/lock/serve',
        component: () => import('/src/views/lock/serve.vue'),
    },
    {
        path: '/lock/serve-list/:id',
        component: () => import('/src/views/lock/serve-list.vue'),
    },
    {
        path: '/user/call-center',
        component: () => import('/src/views/user/call-center.vue'),
    },
    {
        path: '/user/help-center',
        component: () => import('/src/views/user/help-center.vue'),
    }
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;
